package com.dapeis.domain.ext;

import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

import com.dapeis.domain.Collocation;
import com.dapeis.domain.Comment;
import com.dapeis.domain.Order;
import com.dapeis.domain.Requirement;

/**
 * 抢单列表数据组装 Title:OrderExt.java OrderExt Description:
 * 
 * @author yuanyong
 * @date 2017年5月8日 下午6:27:35 Email: hzyuanyong@126.com
 *
 */
public class OrderExt extends Order {

    @OneToOne
    @JoinColumn(name = "userId")
    public UserExt userExt;

    @OneToOne
    @JoinColumn(name = "linkId")
    public Requirement requirement;

    @OneToOne
    @JoinColumn(name = "collocationId")
    public Collocation collocation;

    @OneToOne
    @JoinColumn(name = "commentId")
    public Comment comment;

    public UserExt getUserExt() {
	return userExt;
    }

    public void setUserExt(UserExt userExt) {
	this.userExt = userExt;
    }

    public Requirement getRequirement() {
	return requirement;
    }

    public void setRequirement(Requirement requirement) {
	this.requirement = requirement;
    }

    public Collocation getCollocation() {
	return collocation;
    }

    public void setCollocation(Collocation collocation) {
	this.collocation = collocation;
    }

    public Comment getComment() {
	return comment;
    }

    public void setComment(Comment comment) {
	this.comment = comment;
    }
}
